﻿<%@ Page Language="C#"   AutoEventWireup="true" CodeBehind="SalesmanAdd.aspx.cs" Inherits="UI.ModSalesman.SalesmanAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>售货员信息管理</title>
     <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
            <script type="text/javascript">
              //将回车键改为tab键//
                document.onkeydown = function (event) {
                    try {
                        var evt = null;
                        if (arguments.length == 1) {
                            evt = arguments[0];
                        } else {
                            evt = (window.event ? window.event : null);
                        }
                        if (evt.charCode) {
                            if (evt.charCode == 13) {
                                var el = evt.srcElement || evt.target;
                                if (el) {
                                    evt.charCode = 9;
                                }
                            }
                        } else {
                            if (evt.keyCode == 13) {
                                var el = evt.srcElement || evt.target;
                                if (el) {
                                    evt.keyCode = 9;
                                }
                            }
                        }
                    } catch (e) { }
                }
</script>

    <style type="text/css">
      
        .style1
        {
            width: 110px;
             f
        }
    </style>
</head>
<body onload="window.document.forms[0].txtEmpCode.focus();">
    <form id="form1" runat="server">
    <br />
    <p style="text-align: center; font-size: large;">
        <strong>促销员信息管理</strong></p>
    <br />
    <table style="width: 75%;" align="center" class="td">
        <tr>
            <td class="style1">
                工号
            </td>
            <td style="width: 180px;">
                <asp:TextBox ID="txtEmpCode" runat="server" CssClass="InputCss" Width="90px" 
                    TabIndex="0" 
                    MaxLength="15"></asp:TextBox>
                    <a href="javascript:ShowLink('../ModEmployee/EmpCreateCode.aspx',350,300)"><img src="../Images/Search.gif" alt="生成编号" width="27" height="12" border="0" /></a>
                <asp:RequiredFieldValidator ID="rfCode" runat="server" 
                    ControlToValidate="txtEmpCode" ErrorMessage="必填" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                入职时间
            </td>
            <td>
                <asp:TextBox ID="txtJoinTime" runat="server"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    CssClass="InputCss" Width="100px" TabIndex="1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfTime" runat="server" 
                    ControlToValidate="txtJoinTime" ErrorMessage="必填" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                姓名</td>
            <td>
                <asp:TextBox ID="txtEmpName" runat="server" CssClass="InputCss" Width="90px" 
                    TabIndex="2" MaxLength="15"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfName" runat="server" 
                    ControlToValidate="txtEmpName" ErrorMessage="必填" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                性别
            </td>
            <td>
                <asp:DropDownList ID="ddlEmpSex" runat="server" CssClass="InputCss" 
                    TabIndex="3">
                    <asp:ListItem>女</asp:ListItem>
                    <asp:ListItem>男</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style1">
                身份证号码</td>
            <td>
                <asp:TextBox ID="txtZipCode" runat="server" CssClass="InputCss" Width="140px" 
                    tabindex="4" MaxLength="18"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfZipCode" runat="server" 
                    ControlToValidate="txtZipCode" ErrorMessage="必填" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                民族</td>
            <td>
                <asp:TextBox ID="txtNationality" runat="server" CssClass="InputCss" 
                    Width="100px" tabindex="5" MaxLength="12">汉</asp:TextBox></td>
        </tr>
        <tr>
            <td class="style1">
                身份证地址</td>
            <td>
                <asp:TextBox ID="txtAddr" runat="server" CssClass="InputCss" Width="140px" 
                    tabindex="6" MaxLength="50"></asp:TextBox>
            </td>
            <td>
    籍贯</td>
            <td>
                <asp:TextBox ID="txtRegistry" runat="server" CssClass="InputCss" Width="100px" 
                    tabindex="7" MaxLength="15">汕头</asp:TextBox></td>
        </tr>
        <tr>
            <td class="style1">
                手机</td>
            <td>
                <asp:TextBox ID="txtMobile" runat="server" CssClass="InputCss" Width="120px" 
                    tabindex="8" MaxLength="25"></asp:TextBox>
            </td>
            <td>
                联系电话</td>
            <td>
                <asp:TextBox ID="txtHomeTel" runat="server" CssClass="InputCss" Width="100px" 
                    tabindex="9" MaxLength="20"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="style1">
                毕业学校</td>
            <td>
                <asp:TextBox ID="txtEducationSchool" runat="server" CssClass="InputCss" 
                    Width="120px" tabindex="10" MaxLength="30"></asp:TextBox>
            </td>
            <td>
                最高学历</td>
            <td>
                  <asp:DropDownList ID="ddlEducationID" runat="server" CssClass="InputCss" 
                      TabIndex="11">
        </asp:DropDownList></td>
        </tr>
        <tr>
            <td class="style1">
                部门名称</td>
            <td>
                <asp:TextBox ID="txtDeptName" runat="server" CssClass="InputCss" Width="120px" 
                    TabIndex="12" MaxLength="20"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfdept" runat="server" 
                    ControlToValidate="txtDeptName" ErrorMessage="必填" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                品牌
            </td>
            <td>
                <asp:TextBox ID="txtBrand" runat="server" CssClass="InputCss" Width="100px" 
                    TabIndex="13" MaxLength="15"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfBrand" runat="server" 
                    ControlToValidate="txtBrand" ErrorMessage="必填" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                工作类别
            </td>
            <td>
                <asp:DropDownList ID="ddlTypeName" runat="server" CssClass="InputCss" 
                    TabIndex="14">
                   </asp:DropDownList>
            </td>
            <td>
                在职状态</td>
            <td>
                <asp:DropDownList ID="ddlStateName" runat="server" CssClass="InputCss" 
                    TabIndex="15">
                    <asp:ListItem>在职</asp:ListItem>
                    <asp:ListItem>离职</asp:ListItem>
                </asp:DropDownList>
                <br />
            </td>
        </tr>
        <tr>
            <td class="style1">
                供货厂商</td>
            <td>
                <asp:TextBox ID="txtFromCompanyName" runat="server" CssClass="InputCss" 
                    Width="120px" tabindex="16" MaxLength="30"></asp:TextBox>
            </td>
            <td>
                健康证办理时间</td>
            <td>
                <asp:TextBox ID="txtHealthTime" runat="server"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    CssClass="InputCss" Width="100px" tabindex="17"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="style1">
                保证金</td>
            <td>
                <asp:TextBox ID="txtSecurityAmount" runat="server" CssClass="InputCss" 
                    Width="120px" tabindex="18" MaxLength="6" ReadOnly="True">0</asp:TextBox>
            </td>
            <td>
                管理费用</td>
            <td>
                <asp:TextBox ID="txtManageAmount" runat="server" CssClass="InputCss" 
                    Width="100px" tabindex="19" MaxLength="6" ReadOnly="True">0</asp:TextBox></td>
        </tr>
        

        
         <tr>
            <td class="style1">
                紧急联系人</td>
            <td>
                <asp:TextBox ID="txtSpecialLinkMan" runat="server"  maxlength="20" 
                  
                    CssClass="InputCss" Width="120px" tabindex="20"></asp:TextBox>
            </td>
            <td>
                紧急联系人关系</td>
            <td>
                <asp:TextBox ID="txtSpecialRelation" runat="server"  maxlength="15" 
                   
                    CssClass="InputCss" Width="100px" tabindex="21"></asp:TextBox>
             </td>
        </tr>
         <tr>
            <td class="style1">
                紧急联系人电话</td>
              <td >
                <asp:TextBox ID="txtSpecialLinkWay" runat="server"  maxlength="50" 
                   
                    CssClass="InputCss" Width="140px" tabindex="22"></asp:TextBox>
            </td>
            <td>退场时间</td>
             <td>
                <asp:TextBox ID="txtOutTime" runat="server"  maxlength="10" 
                     onclick="setday(this,false)" 
                     onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;"  
                    CssClass="InputCss" Width="100px" tabindex="23" ReadOnly="True"></asp:TextBox>
             </td>
        </tr>
        <tr>
            <td class="style1">
                备注
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtMemo" runat="server" CssClass="InputCss" Width="380px" 
                    TabIndex="24" MaxLength="150"></asp:TextBox>
            </td>
        </tr>
        
    </table>
    <br />
    <p style="text-align: center;">
    <asp:Button ID="btnAdd" runat="server" Text="增加" OnClick="btnAdd_Click" 
            TabIndex="25" />
    &nbsp;<asp:Button ID="btnUpdate" runat="server" Text="更新" OnClick="btnUpdate_Click" 
            TabIndex="26" />
    &nbsp;<asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" 
            TabIndex="27" />
    &nbsp;
        <br /><br />
    促销员离职：在离职管理界面增加离职信息，会自动修改基本信息为离职状态；&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
    促销员退费用：在退场管理界面退场操作，会自动修改基本信息中的退场时间。<br />
    <br />
    </p>
   <br />

    </form>
</body>
</html>
